package com.zongxingh.consumer.hystrix.controller;

import com.zongxingh.consumer.hystrix.service.ConsumerFeignHystrixService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Introduction:  <简介>
 * Package Name:  com.zongxingh.consumer.ribbon.controller
 * Project Name:  registry
 * Author:  zongxingh
 * Email： zongxingh@163.com
 * Tel: 157*****778
 * Create Time:  2020/6/17 15:04
 */

@RestController
@RequestMapping("/consumer/feign-hystrix")
public class ConsumerFeignHystrixController {

    @Autowired
    private ConsumerFeignHystrixService feignHystrixService;

    @RequestMapping("/hello")
    public String consumerHello(){
        return feignHystrixService.consumerHello();
    }
}
